<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
<script type="text/javascript" src="<s:url value="/script/selfResize.js"/>"></script>
<link href="<s:url value="/images/08_ccxxzx.css"/>" rel="stylesheet" type="text/css" />
<script>
function show(url){
	window.open(url);
}
function initLoad(){
	f_iframeResize();
}
window.onload = initLoad;
</script>
<script type="text/javascript" src="<s:url value="/script/sysOper.js"/>"></script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">

<table width="980" border="0" cellspacing="0" cellpadding="0"
	align="center">
	<tr>
		<td>
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			background="<s:url value="/images/new/gxzl_index_2.gif"/>">
		<form action="showProductReferences2.action" method="post" target="_blank">
			<tr>
				<td width="20" height="32">&nbsp;</td>
				<td width="20"><img
					src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
					height="12" /></td>
				<td>当前位置：产品资料信息</td>
				<td width="100">产品资料搜索</td>
				<td width="200"><input name="conds.title" type="text"
					value="" style="width: 99%"
					onFocus="this.value=''" /></td>
				<td width="100"><input type="submit" name="Submit" value="搜索" /></td>
			</tr>
		</form>
		</table>
		</td>
	</tr>
	<tr>
		<td background="<s:url value="/images/home_4a.gif"/>">
		<table width="98%" border="0" cellspacing="0" cellpadding="0"
			align="center" bgcolor="#FFFFFF">
			<tr>
				<td width="20%" valign="top">
				<table width="980" height="400" border="0" cellspacing="0"
					cellpadding="0" align="center" bgcolor="#FFFFFF">
					<tr>
						<td width="240" valign="top" class="leftbg"><%@ include
							file="/commons/include/pref_left.inc"%></td>
						<td valign="top" align="center">
							<br>
							<table width="98%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td height="5">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
												<td class="tdborderup"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
												<td width="5"><img src="<s:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td class="tdborderleftright">
									<s:form id="form1" name="form1" action="/business/product/showProductReferences.action" method="post">
									<TABLE width="98%" border="0" cellspacing="0" cellpadding="0"
										align="center" class=tablecolor2>
										<tr>
											<td width="15%" height="50">
											<div align="center">标&nbsp;&nbsp;&nbsp;题</div>
											</td>
											<td width="35%"><input name="conds.title" type="text"
												value="${conds.title}" size="20" /></td>
											<td width="15%" height="50">
											<div align="center">发布经理</div>
											</td>
											<td width="35%"><input id="conds.creator" name="conds.creator" type="text" value="${conds.creator}" size="20"  onFocus="this.value=''" /></td>
										</tr>
										<tr>
											<td width="" height="50">
											<div align="center">产&nbsp;&nbsp;&nbsp;品</div>
											</td>
											<td width=""><input id="productid" name="conds['product.id']"
												type="hidden" value="" size="20" /> <input id="productname" name="conds['product.name']" value="${conds['product.name']}"
												type="text" value="" size="20"  onFocus="this.value=''" /> <input type="button"
												name="selType" value="选择" onClick="selectProduct()" /></td>
											<td width="">
											<div align="center">资料类型</div>
											</td>
											<td width=""><s:set name="reftype"
												value="conds['referenceType.id']" /> <select
												name="conds['referenceType.id']">
												<option value="">请选择</option>
												<s:iterator id="rtid" value="lRefType">
													<option value="${rtid.id}"
														<s:if test="#rtid.id==#reftype">selected</s:if>><s:property
														value="name" /></option>
												</s:iterator>
											</select></td>
										</tr>
									</TABLE>
									<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
										<TR height=30>
											<TD align=left width="10%"><input type="button"
												name="search" onclick="process();" value="查 询"></TD>
										</TR>
									</table>
									<input type="hidden" name="pageControl.usePage"
										value="${pageControl.usePage}" /> <input type="hidden"
										name="pageControl.pageNo" value="${pageControl.pageNo}" /> <input
										type="hidden" name="pageControl.totalPage"
										value="${pageControl.totalPage}" /> <input type="hidden"
										name="pageControl.pageSize" value="${pageControl.pageSize}" />
									<table width="98%" border="0" cellspacing="0" cellpadding="7"
										align="center" class=tablecolor2>
										<tr>
											<td colspan="9" align="right"><s:if
												test="pageControl.useFrontPage">
												<a href="#"
													onclick="document.all('pageControl.pageNo').value=${pageControl.pageNo-1};process();">上一页</a>
											</s:if> <s:if test="pageControl.useNextPage">
												<a href="#"
													onclick="document.all('pageControl.pageNo').value=${pageControl.pageNo+1};process();">下一页</a>
											</s:if> 第${pageControl.pageNo}页 共${pageControl.totalPage}页
											总${pageControl.total}条记录 每页${pageControl.pageSize}条记录</td>
										</tr>
										<tr>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">所属产品</font></div>
											</td>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">资料类型</font></div>
											</td>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">标题</font></div>
											</td>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">发布经理</font></div>
											</td>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">发布时间</font></div>
											</td>
										</tr>
										<s:iterator value="pageControl.results">
											<tr>
												<td>
												<div align="center"><a
													href="<s:url value="/business/product/showProductReference.action?productReference.id="/><s:property value="id"/>"
													target="_blank"> <s:property value="product.name" /> </a></div>
												</td>
												<td>
												<div align="center"><a
													href="<s:url value="/business/product/showProductReference.action?productReference.id="/><s:property value="id"/>"
													target="_blank"> <s:property value="referenceType.name" />
												</a></div>
												</td>
												<td>
												<div align="center"><a
													href="<s:url value="/business/product/showProductReference.action?productReference.id="/><s:property value="id"/>"
													target="_blank"> <s:property value="title" /> </a></div>
												</td>
												<td>
												<div align="center"><a
													href="<s:url value="/business/product/showProductReference.action?productReference.id="/><s:property value="id"/>"
													target="_blank"> <s:property value="creator" /> </a></div>
												</td>
												<td>
												<div align="center"><a
													href="<s:url value="/business/product/showProductReference.action?productReference.id="/><s:property value="id"/>"
													target="_blank"> <s:date name="begin"
													format="yyyy-MM-dd hh:mm" /> </a></div>
												</td>
											</tr>
										</s:iterator>
										<tr>
											<td colspan="9" align="right"><s:if
												test="pageControl.useFrontPage">
												<a href="#"
													onclick="document.all('pageControl.pageNo').value=${pageControl.pageNo-1};process();">上一页</a>
											</s:if> <s:if test="pageControl.useNextPage">
												<a href="#"
													onclick="document.all('pageControl.pageNo').value=${pageControl.pageNo+1};process();">下一页</a>
											</s:if> 第${pageControl.pageNo}页 共${pageControl.totalPage}页
											总${pageControl.total}条记录 每页${pageControl.pageSize}条记录</td>
										</tr>
									</table>
									</td>
								</tr>
								<tr>
									<td height="5">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
												<td class="tdborderbottom"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
												<td width="5"><img src="<s:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</s:form></td>
					</tr>
				</table></body>
<script>
	function selectProduct(){
	     var url="<s:url value='/' escapeAmp='false'/>"+'<s:url value="xtreecheckbox/selectProduct.jsp?module=radio&date=" escapeAmp="false" />'+'<%=System.currentTimeMillis()%>';
			var returnData = window.showModalDialog(url, window,
					"status:no;dialogWidth:800px;dialogHeight:600px;scroll:yes;");
			if (returnData) {
				document.getElementById("productname").value= returnData[1];
				document.getElementById("productid").value= returnData[0];
			}
	}
var obj1=document.getElementById("iTR1");
if(obj1){
	obj1.style.backgroundColor="B3DEF4";
}

var creator= document.getElementById("conds.creator");
var productname= document.getElementById("productname");
function process(){
	if(creator.value=="请输入产品经理名称"){
		creator.value="";
	}
	if(productname.value=="请输入产品名称"){
		productname.value="";
	}
	document.all["form1"].submit();
}

if(creator.value==""){
	creator.value="请输入产品经理名称";
}
if(productname.value==""){
	productname.value="请输入产品名称";
}

</script>
</html>

